﻿@model  MSWeb.Implementation.WplataZaLekcjeDodaj

<div class="modal fade" id="wplata-tworzenie-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Tworzenie wpłaty</h4>
            </div>
            
            

            <div class="modal-body">
                @using (Html.BeginForm("Create", "wplata", FormMethod.Post))
                {
                    @Html.AntiForgeryToken()

                    @Html.ValidationSummary(true, "", new { @class = "text-danger" })

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Lekcja:</label>
                        @Html.DropDownList("IDLekcji", null, htmlAttributes: new { @class = "form-control" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Kwota:</label>
                        @Html.EditorFor(model => model.Kwota, new { htmlAttributes = new { @class = "form-control" } })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Powtórzenie:</label>
                        @Html.EnumDropDownListFor(model => model.typWplatyZaLekcje)
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Komentarz:</label>
                        @Html.EditorFor(model => model.Komentarz, new { htmlAttributes = new { @class = "form-control" } })
                    </div>

                    <div class="modal-footer">
                        <input type="submit" value="Zapisz" class="btn btn-default" />
                    </div>
                }
            </div>
        </div>
    </div>
</div>
